package com.anycl.design.behavioral.state.instance;

import lombok.extern.slf4j.Slf4j;

/**
 * 待机状态
 */
@Slf4j
public class StandByState extends TVState {

    @Override
    void powerOn() {

    }

    @Override
    void powerOff() {
        log.info("关机");
        super.remoteControlMachine.setCurrentState(RemoteControlMachine.POWER_OFF_STATE);
        super.remoteControlMachine.powerOff();
    }

    @Override
    void play() {
        log.info("播放");
        super.remoteControlMachine.setCurrentState(RemoteControlMachine.PLAY_STATE);
        super.remoteControlMachine.play();
    }

    @Override
    void standby() {

    }
}
